<table style="border: 1px solid #000; width: 100%" >
    <thead >
        <tr>
            <th>C&oacute;digo</th>
            <th>Nombre</th>
            <th>Precio</th>
         </tr>
    </thead>
    <tbody id="lineaResultado">
        <?php
        $contador = 0;
        $total = 0;
       if(count($conceptos) > 0):
        foreach ($conceptos as $i => $item):
            if ($contador % 2) {
                $fondolinea = "itemParTabla";
            } else {
                $fondolinea = "itemImparTabla";
            }
            ?>
            <tr class="<?php echo $fondolinea ?>">
    <!--                <tr class="<2?php echo fmod($i, 2) ? 'even' : 'odd' ?>">-->
                <td style="width:50px;text-align: left" ><?php echo $item['codigo'] ?></td>
                <td style="width:150px;text-align: center" ><?php echo $item['nombre'] ?></td>
                <td style="text-align: left;width:50px;" ><?php echo "$" . $item['valor'] ?></td>
             </tr>    
            <?php
            $contador++;
            $total += $item['valor'];
        endforeach;
     endif;?>
   </tbody>
 </table>
    <div id="totalFacOrd" class="totales" style="text-align: right;width: 100%">
        <?php echo "TOTAL FIJOS: $" . $total ?>
    </div>
   
